def test(a):
    def inner():
        nonlocal a
        a=200
        print(a)
    return inner

a=100
f1=test(a)
f1()
print(a)